import request from '@/utils/request'

//**收费项目维护**//
//加载物品，服务类型基本信息
export function loadGoodsServiceTypeList(data) {
  return request({
    url: '/admin/goods-service/load-goods-service-type-list',
    method: 'post',
    data
  })
}
//保存物品服务类型基本信息
export function saveGoodsServiceType(data) {
  return request({
    url: '/admin/goods-service/save-goods-service-type',
    method: 'post',
    data
  })
}
//删除物品服务类型基本信息
export function deleteGoodsServiceTypeWithId(data) {
  return request({
    url: '/admin/goods-service/delete-goods-service-type-with-id',
    method: 'post',
    data
  })
}
//加载物品服务类型基本信息
export function loadGoodsServiceListWithType(data) {
  return request({
    url: '/admin/goods-service/load-goods-service-list-with-type',
    method: 'post',
    data
  })
}
//加载费用列表，通过费用类型type_code
export function loadServiceItemListWithServiceType(data) {
  return request({
    url: '/admin/goods-service/load-service-item-list-with-service-type',
    method: 'post',
    data
  })
}
//根据物品服务项目id，加载物品、服务基本信息
export function loadGoodsServiceWithId(data) {
  return request({
    url: '/admin/goods-service/load-goods-service-with-id',
    method: 'post',
    data
  })
}
//加载不是任务包的物品服务
export function loadGoodsServiceListNoPackage(data) {
  return request({
    url: '/admin/goods-service/load-goods-service-list-no-package',
    method: 'post',
    data
  })
}
//加载所有的物品服务
export function loadGoodsServiceList(data) {
  return request({
    url: '/admin/goods-service/load-goods-service-list',
    method: 'post',
    data
  })
}
//保存物品服务基本信息
export function saveGoodsService(data) {
  return request({
    url: '/admin/goods-service/save-goods-service',
    method: 'post',
    data
  })
}
//删除物品服务基本信息
export function deleteGoodsServiceWithId(data) {
  return request({
    url: '/admin/goods-service/delete-goods-service-with-id',
    method: 'post',
    data
  })
}

/**
 * 礼厅相关接口
 *
 */
/**
 * 加载礼厅信息列表
 * @param data
 */

export function loadHallList(data) {
  return request({
    url: '/admin/hall/load-hall-list',
    method: 'post',
    data
  })
}

/**
 * 根据礼厅id，加载礼厅基本信息
 * @param data
 */
export function loadHallWithId(data) {
  return request({
    url: '/admin/hall/load-hall-with-id',
    method: 'post',
    data
  })
}
/**
 * 保存礼厅数据基本信息
 */
export function saveHall(data) {
  return request({
    url: '/admin/hall/save-hall',
    method: 'post',
    data
  })
}

/**
 * 删除礼厅数据信息
 */
export function deleteHallWithId(data) {
  return request({
    url: '/admin/hall/delete-hall-with-id',
    method: 'post',
    data
  })
}
/**
 * 数据字典管理
 */
/**
 * 字典类型
 */
export function loadDictionaryList(data) {
  return request({
    url: '/admin/dictionary-data/load-dictionary-list',
    method: 'post',
    data
  })
}

/**
 * 字典内数据项列表加载
 */
export function loadDictionaryDataListWithCode(data) {
  return request({
    url: '/admin/dictionary-data/load-dictionary-data-list-with-code',
    method: 'post',
    data
  })
}

/**
 * 字典内数据项修改前数据加载
 */
export function loadDictionaryDataWithId(data) {
  return request({
    url: '/admin/dictionary-data/load-dictionary-data-with-id',
    method: 'post',
    data
  })
}

/**
 * 字典数据修改保存
 */
export function saveDictionaryData(data) {
  return request({
    url: '/admin/dictionary-data/save-dictionary-data',
    method: 'post',
    data
  })
}
/**
 * 字典数据删除：
 */
export function deleteDictionaryDataWithId(data) {
  return request({
    url: '/admin/dictionary-data/delete-dictionary-data-with-id',
    method: 'post',
    data
  })
}
//字典费用规则-数据字典管理
/**
 * 字典费用关联信息列表：
 */
export function loadServiceDictionaryList(data) {
  return request({
    url: '/admin/service-dictionary/load-service-dictionary-list',
    method: 'post',
    data
  })
}
/**
 * 选中字典项后，通过字典表外联费用表和规则表加载信息
 */
export function loadServiceDictionaryDataListWithCode(data) {
  return request({
    url: '/admin/service-dictionary/load-service-dictionary-data-list-with-code',
    method: 'post',
    data
  })
}
/**
 * 3、规则设置或追加用途规则时，为设置窗口加载数据
 * "设置规则"按钮：列表选中行数据中有id时传递id，无id时传递字典id【即：dataDictionaryId】
 * ”追加用途规则“按钮：列表选中行数据中传递字典id【即：dataDictionaryId】
 */
export function loadServiceDictionaryDataWithId(data) {
  return request({
    url: '/admin/service-dictionary/load-service-dictionary-data-with-id',
    method: 'post',
    data
  })
}
/**
 * 4、保存规则设置信息
*/
export function saveServiceDictionaryData(data) {
  return request({
    url: '/admin/service-dictionary/save-service-dictionary-data',
    method: 'post',
    data
  })
}

/**
 * 5、删除用途规则
 */
export function deleteServiceDictionaryDataWithId(data) {
  return request({
    url: '/admin/service-dictionary/delete-service-dictionary-data-with-id',
    method: 'post',
    data
  })
}
//**收费项目维护**//
/**
 * 接运车辆维护，加载字典类型信息列表
 */
export function loadCarList(data) {
  return request({
    url: '/admin/car/load-car-list',
    method: 'post',
    data
  })
}
/**
 * 接运车辆维护，根据车辆id，加载车辆基本信息
 */
export function loadCarWithId(data) {
  return request({
    url: '/admin/car/load-car-with-id',
    method: 'post',
    data
  })
}
/**
 * 接运车辆维护，保存车辆数据基本信息
 */
export function saveCar(data) {
  return request({
    url: '/admin/car/save-car',
    method: 'post',
    data
  })
}
/**
 * 接运车辆维护，删除车辆数据信息
 */
export function deleteCarWithId(data) {
  return request({
    url: '/admin/car/delete-car-with-id',
    method: 'post',
    data
  })
}
/**
 * POST加载火化炉信息列表
 */
export function loadFurnaceList(data) {
  return request({
    url:'/admin/furnace/load-furnace-list',
    method: 'post',
    data
  })
}
/**
 * POST 根据火化炉id，加载火化炉基本信息
 */
export function loadFurnaceWithId(data) {
  return request({
    url:'/admin/furnace/load-furnace-with-id',
    method: 'post',
    data
  })
}
 /**
   * POST保存火化炉数据基本信息
   */
 export function saveFurnace(data) {
   return request({
     url:'/admin/furnace/save-furnace',
     method: 'post',
     data
   })
 }
/**
 * 删除火化炉数据信息
  */
export function deleteFurnaceWithId(data) {
  return request({
    url: '/admin/furnace/delete-furnace-with-id',
    method: 'post',
    data
  })
}
/**
 * 加载冷藏柜信息列表
 */
export function loadEquipmentList(data) {
  return request({
    url: '/admin/equipment/load-equipment-list',
    method: 'post',
    data
  })
}
/**
 * 加载所有冷藏信息，为可视化界面提供界面数据
 */
export function loadEquipmentPreviewList(data) {
  return request({
    url: '/admin/equipment/load-equipment-preview-list',
    method: 'post',
    data
  })
}
/**
 * 根据冷藏柜id，加载冷藏柜基本信息
 */
export function loadEquipmentWithId(data) {
  return request({
    url: '/admin/equipment/load-equipment-with-id',
    method: 'post',
    data
  })
}
/**
 * 保存冷藏柜数据基本信息
 */
export function saveEquipment(data) {
  return request({
    url: '/admin/equipment/save-equipment',
    method: 'post',
    data
  })
}
/**
 * 删除冷藏柜数据
 */
export function deleteEquipmentWithId(data) {
  return request({
    url: '/admin/equipment/delete-equipment-with-id',
    method: 'post',
    data
  })
}

/**
 * 1异步加载行政区划树
 */
export function loadAdministrativeAreaTreeWithParentId(data) {
  return request({
    url: '/admin/administrative-area/load-administrative-area-tree-with-parent-id',
    method: 'post',
    data
  })
}
/**
 * 2、根据父记录id加载列表数据
 */
export function loadAdministrativeAreaListWithParentId(data) {
  return request({
    url: '/admin/administrative-area/load-administrative-area-list-with-parent-id',
    method: 'post',
    data
  })
}

/**
 * 3、根据记录ID加载行政区划数据，初始化维护窗口
 *
 */
export function loadAdministrativeAreaWithId(data) {
  return request({
    url: '/admin/administrative-area/load-administrative-area-with-id',
    method: 'post',
    data
  })
}
/**4、保存行政区划数据
 *
 */
export function saveAdministrativeArea(data) {
  return request({
    url: '/admin/administrative-area/save-administrative-area',
    method: 'post',
    data
  })
}
/**
 *5、删除行政区划数据
 */
export function deleteAdministrativeAreaWithId(data) {
  return request({
    url: '/admin/administrative-area/delete-administrative-area-with-id',
    method: 'post',
    data
  })
}
/**
 *火化炉类型，使用字典【furnace_type】中数据
 * 1、根据炉型加载火化预约时间段数据
 */
export function loadTimeSegmentListWithCode(data) {
  return request({
    url: '/admin/time-segment/load-time-segment-list-with-code',
    method: 'post',
    data
  })
}
/**
 * 2、火化预约时间段数据保存
 */
export function saveTimeSegment(data) {
  return request({
    url: '/admin/time-segment/save-time-segment',
    method: 'post',
    data
  })
}
/**
 * 3、火化预约时间段数据删除，获取鼠标焦点后，显示删除按钮，可进行项目删除
 */
export function deleteTimeSegmentWithId(data) {
  return request({
    url: '/admin/time-segment/delete-time-segment-with-id',
    method: 'post',
    data
  })
}
/**
 * 数据导出模块
 */
/**
 * 根据Excel模板导入冷藏柜数据信息，用于冷柜数据初始化
 */
export function importEquipmentWithExcel(data) {
  return request({
    url: '/admin/equipment/import-equipment-with-excel',
    method: 'post',
    data
  })
}

/**
 * 根据业务编码加载业务模块下的数据项列表
 */
export function loadServiceBusinessDataListWithCode(data) {
  return request({
    url: '/admin/service-business/load-service-business-data-list-with-code',
    method: 'post',
    data
  })
}
/**
 * 保存业务、费用关联数据信息
 */
export function saveServiceBusinessData(data) {
  return request({
    url: '/admin/service-business/save-service-business-data',
    method: 'post',
    data
  })
}
/**
 * 删除业务、费用关联数据信息
 */
export function deleteServiceBusinessDataWithId(data) {
  return request({
    url: '/admin/service-business/delete-service-business-data-with-id',
    method: 'post',
    data
  })
}
/**
 * 载入系统
 */
export function loadBusinessSystemList(data) {
  return request({
    url: '/admin/business-system/load-business-system-list',
    method: 'post',
    data
  })
}

/**
 * 根据查询条件加载表【system_user】中保存的单位用户数据
 */
export function loadAccountUserList(data) {
  return request({
    url: '/admin/account-user/load-account-user-list',
    method: 'post',
    data
  })
}
/**
 * 根据用户id加载表【system_user】中保存的用户数据
 */
export function loadAccountUserWithId(data) {
  return request({
    url: '/admin/account-user/load-account-user-with-id',
    method: 'post',
    data
  })
}
/**
 * 保存
 */
export function saveAccountUser(data) {
  return request({
    url: '/admin/account-user/save-account-user',
    method: 'post',
    data
  })
}
/**
 * 删除
 */
export function deleteAccountUserWithId(data) {
  return request({
    url: '/admin/account-user/delete-account-user-with-id',
    method: 'post',
    data
  })
}
/**
 * 固定资产列表加载页面
 */
export function loadFixedAssetsItems(data) {
  return request({
    url:'/api/assets/load-fixed-assets-items',
    method: 'post',
    data
  })
}
/**
 * 固定资产保存方法
 */
export function saveOrUpdateAssetsItems(data) {
  return request({
    url:'/api/assets/save-or-update-assets-items',
    method: 'post',
    data
  })
}
/**
 * 根据资产编码加载资产信息
 */
export function loadFixedAssetsInfoByAssetsNo(data) {
  return request({
    url:'/api/assets/load-fixed-assets-info-by-assets-no',
    method: 'post',
    data
  })
}
/**
 * 删除资产编码
 */
export function delFixedAssetsByIds(data) {
  return request({
    url:'/api/assets/del-fixed-assets-by-ids',
    method: 'post',
    data
  })
}
/**
 * important
 */
export function importExcelAssetsInfo(data) {
  return request({
    url:'/api/assets/import-excel-assets-info',
    method: 'post',
    data
  })
}



//加载寄存格位系统
export function loadDepositCaseTreeList(data) {
  return request({
    url: '/api/depositCaseTree/load-deposit-case-tree-list',
    method: 'post',
    data
  })
}

//保存寄存格位树节点
export function saveDepositCaseTree(data) {
  return request({
    url: '/api/depositCaseTree/save-deposit-case-tree',
    method: 'post',
    data
  })
}
//保存寄存格位树节点
export function loadDepositCaseTreeTypeParentId(data) {
  return request({
    url: '/api/depositCaseTree/load-deposit-case-tree-type-parent-id',
    method: 'post',
    data
  })
}

//删除寄存格位树节点
export function loadDepositCaseTreeWithId(data) {
  return request({
    url: '/api/depositCaseTree/load-deposit-case-tree-with-id',
    method: 'post',
    data
  })
}
//删除寄存格位树节点
export function deleteDepositCaseTreeWithId(data) {
  return request({
    url: '/api/depositCaseTree/delete-deposit-case-tree-with-id',
    method: 'post',
    data
  })
}
//加载寄存格位列表
export function loadDepositCaseList(data) {
  return request({
    url: '/api/DepositCase/load-deposit-case-list',
    method: 'post',
    data
  })
}
//根据ID或者casetreeId 加载加载寄存格位列表信息
export function loadDepositCaseWithIdCaseTreeId(data) {
  return request({
    url: '/api/DepositCase/load-deposit-case-with-id-casetreeid',
    method: 'post',
    data
  })
}
//根据ID或者格位id 加载加载寄存格位信息数据
export function loadDepositCaseWithId(data) {
  return request({
    url: '/api/DepositCase/load-deposit-case-with-id',
    method: 'post',
    data
  })
}
//寄存系统-寄存格位维护管理-寄存架生成寄存格位接口
export function saveDepositCase(data) {
  return request({
    url: '/api/DepositCase/save-deposit-case',
    method: 'post',
    data
  })
}
//寄存系统-寄存格位维护管理-寄存格位修改接口
export function updateDepositCase(data) {
  return request({
    url: '/api/DepositCase/update-deposit-case',
    method: 'post',
    data
  })
}
//删除寄存格位
export function deleteDepositCaseNodeWithId(data) {
  return request({
    url: '/api/DepositCase/delete-deposit-case-with-id',
    method: 'post',
    data
  })
}
/**
 * 固定资产导出
 * @type {string}
 */
export const AssetsQueryEXPEXC = '/api/assets/load-fixed-assets-export-excel' //费用导出execl

